/*
 * @Author: xiawei 1243162387@qq.com
 * @Date: 2024-03-29 10:11:43
 * @LastEditors: xiawei 1243162387@qq.com
 * @LastEditTime: 2024-12-01 01:11:46
 */
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
//@ts-ignore
import prefixSelectors from 'postcss-prefix-selector';

const pathSrc = resolve(__dirname, 'src')
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  server: {
  },
  resolve: {
    alias: [ //别名配置
      {
        find: '@',
        replacement: pathSrc,
      }]
  },
  css: {
    preprocessorOptions: {
      scss: { // 修改element-plus命名空间
        additionalData: `@use "@/styles/element/index.scss" as *;`,
      },
    }
  },
})
